/**
 * 
 * @author Jenc, Jeppe
 *
 * Container class for a "Vector" which Holds the position of a coin
 */
public class VectorPos
{
	public int xPos = 0;
	public int yPos = 0;
	/**
	 * Constructor
	 * @param x
	 * @param y
	 */
	public VectorPos(int x, int y)
	{
		xPos = x;
		yPos = y;
	}

	@Override
	/**
	 * Compare two VectorPos
	 */
	public boolean equals(Object o)
	{
		boolean result = false;
	
		 if (o instanceof VectorPos)
		 {
			 VectorPos test = (VectorPos)o;
			 if((test.xPos==this.xPos) && (test.yPos==this.yPos))
				 result = true;
		 }
		return result;
	}
}
